import request from '@/utils/request'

export default {

    //带查询条件、分页查询医院信息列表
    getHospPage(page, limit, searchObj) {
        return request({
            url: `/admin/hosp/hospital/getHospPage/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },
    //根据dictCode获取下级节点
    findByDictCode(dictCode) {
        return request({
            url: `/admin/cmn/dict/findByDictCode/${dictCode}`,
            method: 'get'
        })
    },
    //根据数据id查询子数据列表
    findChildData(id) {
        return request({
            url: `/admin/cmn/dict/findChildData/${id}`,
            method: 'get'
        })
    },
    //更新上线状态
    updateStatus(id, status) {
        return request({
            url: `/admin/hosp/hospital/updateStatus/${id}/${status}`,
            method: 'get'
        })
    },
    //查看医院详情
    getHospById(id) {
        return request({
            url: `/admin/hosp/hospital/show/${id}`,
            method: 'get'
        })
    },
    //查看医院科室
    getDeptByHoscode(hoscode) {
        return request({
            url: `/admin/hosp/department/getDeptList/${hoscode}`,
            method: 'get'
        })
    }
    


}